<%@ page contentType="text/html;charset=GBK" %><%@ page import="java.io.*" %><%@ page import="java.util.*" %><%@ page import="com.ionglobal.lib.*" %><%@ page import="com.ionglobal.misc.*" %><%@ include file="/inc/init_include.jsp" %><%
//禁止缓存
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.setHeader("Expires","0");

int flag = Request.getInt("flag");
Properties prop = new Properties();

try{
	FileInputStream settingFile = new FileInputStream(request.getRealPath("/WEB-INF/classes")+"\\datatransport.properties");
	prop.load(settingFile);
	settingFile.close();
}catch(Exception e){
	e.printStackTrace();
}

switch(flag){
	case 1:
		prop.setProperty("dcn", "1");
		prop.setProperty("flag", "0");
		break;
	case 2:
		prop.setProperty("catia", "1");
		break;
	case 3:
		prop.setProperty("dcn", "1");
		prop.setProperty("flag", "2");
}

try{
	FileOutputStream os = new FileOutputStream(request.getRealPath("/WEB-INF/classes")+"\\datatransport.properties");
	prop.store(os, "");
	os.close();
}catch(Exception e){
	e.printStackTrace();
}
%><%@ include file="/inc/init_free.jsp" %>